<%@ page import="com.zs.dao.AdminDao" %>
<%@ page import="com.zs.entity.Admin" %><%--
  Created by IntelliJ IDEA.
  User: chongge
  Date: 2024/1/11
  Time: 11:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String aname = request.getParameter("aname");
    String apwd = request.getParameter("apwd");
    String phone = request.getParameter("phone");
    String email = request.getParameter("email");
    AdminDao adminDao = new AdminDao();
    Admin admin = new Admin();
    admin.setAname(aname);
    admin.setApwd(apwd);
    admin.setPhone(phone);
    admin.setEmail(email);
    adminDao.addAdmin(admin);
    response.sendRedirect("adminManage.jsp");
%>
</body>
</html>
